package com.klb.dao;

import java.util.List;

import com.klb.model.BbsArticle;

/**
 * Created by fujia on 2016/6/5.
 */
public interface ArticleDao {
	
	/**
	 * 
	 * @param articleId
	 * @return
	 */
    public BbsArticle getArticleById(int articleId);
    
    /**
     * 
     * @return
     */
    public List<BbsArticle> getAllArticles();
    
    /**
     * 
     * @param blockId
     * @return
     */
    public List<BbsArticle> getArticlesByBlockId(int blockId);
    
    /**
     * 
     * @param userId
     * @return
     */
    public List<BbsArticle> getArticlesByUserId(int userId);
    
    /**
     * 
     * @return
     */
    public List<BbsArticle> getHotArticles();
    
    /**
     * 
     * @return
     */
    public List<BbsArticle> getNewArticles();
    
    /**
     * 
     * @param articleId
     * @return
     */
    public boolean addCommentByArticleId(int articleId);
}
